package cn.sf.sufinguserconsumer.fallback;

import cn.sf.pojo.User;
import cn.sf.sufinguserconsumer.service.UserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceFallback implements UserService  {

    @Override
    public User queryInformation(Long id) {
        return null;
    }

    @Override
    public String updateUserById(User user) {
        return "网络连接超时，修改失败，请稍后再试";
    }

    @Override
    public User getRedisUserById(Long id) {
        User user = new User();
        user.setUserName("查询失败");
        return user;
    }

    @Override
    public String uploadHead(String userHead, Long userId) {
        String str="系统出现错误，请稍后再试";
        return str;
    }

    @Override
    public User queryUser(String userCode, String userPassword) {
        return null;
    }

    @Override
    public int userAdd(User user) {
        return 0;
    }

    @Override
    public boolean queryIsOrNotAttention(long userId1, long userId2) {
        return false;
    }

    @Override
    public boolean userAttention(long userId1, long userId2) throws Exception {
        return false;
    }
}
